package com.elroy_zhongxing.spirit_elroy;

import android.content.Context;
import android.widget.Toast;

public class ToastUtil {
    private static Toast toast;

    public static void toast(Context ctx, String text){
        if (toast == null){
            toast = Toast.makeText(ctx, "", Toast.LENGTH_SHORT);
        }

        toast.setText(text);
        toast.show();
    }
}